<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/7/6
 * Time: 9:46
 * Project name: PHPTEST
 * File name: 2.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */

$mem = new Memcache();
$mem->connect("localhost",11211);
echo $mem->getVersion();
$mem->set("k",time());
echo $mem->get("k");
$mem->close();